package com.yuanian.timingwheel.model.task.base;

import com.yuanian.timingwheel.model.task.executestragy.ExecutionStrategy;

/**
 * 任务接口
 */
public interface Task {

    /**
     * 任务执行
     * @return
     */
    boolean execute();

    /**
     * 执行失败或成功的策略
     * @return
     */
    ExecutionStrategy getExecutionStrategy();

}
